package com.wits.qso.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.wits.platform.service.BaseService;
import com.wits.qso.dao.DeptDao;
import com.wits.qso.entity.Dept;

@Component
public class DeptService extends BaseService<Dept,String>{
	
	private DeptDao deptDao;
	
	@Autowired
	public void setDeptDao(DeptDao deptDao) {
		this.baseDao=deptDao;
		this.deptDao = deptDao;
	}

	public boolean hasDeptByTitle(String title) {
		return null != deptDao.findByTitle( title );
	}
	
}
